//
//  ZZVisitorViewController.m
//  Sina
//
//  Created by 张卓 on 2017/1/17.
//  Copyright © 2017年 ZZ. All rights reserved.
//

#import "ZZVisitorViewController.h"

@interface ZZVisitorViewController ()

@end

@implementation ZZVisitorViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    NSLog(@"%d",self.isLogin);
}

- (void)loadView{
    //登录
    if(self.isLogin){
        
    }else {//未登录
        
    }
    
    
}




//未登录时,左上角和右上角nav
- (void)setupNav {
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:[UIButton leftBntWith:nil andTitle:@"取消" andTarget:self andAction:@selector(cancelClick)]];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:[UIButton leftBntWith:nil andTitle:@"自动填充" andTarget:self andAction:@selector(AutoClick)]];
    
}


- (void)cancelClick {
    [self.navigationController dismissViewControllerAnimated:YES completion:nil];
}

- (void)AutoClick {
    NSLog(@"自动填充打印了");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
